home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / LCLINT-D.SPK / lclint / guide / fig19-out < prev    next >
Text File  |  1996-08-26  |  1KB  |  33 lines

  1. LCLint 2.2 --- 25 Aug 96
  2.  
  3. order.c: (in function f)
  4. <A HREF="order.c.html#line11" target="source">order.c:11,17</A>: Expression has undefined behavior
  5.     (value of right operand modified by left operand):
  6.     x++ * x
  7.   Code has unspecified behavior. Order of evaluation
  8.   of function parameters or subexpressions is not
  9.   defined, so if a value is used and modified in
  10.   different places not separated by a sequence point
  11.   constraining evaluation order, then the result of
  12.   the expression is unspecified. (-evalorder will
  13.   suppress message)
  14. <A HREF="order.c.html#line13" target="source">order.c:13,11</A>: Expression has undefined behavior (left
  15.     operand uses i, modified by right operand):
  16.     y[i] = i++
  17. <A HREF="order.c.html#line14" target="source">order.c:14,20</A>: Expression has undefined behavior
  18.     (value of right operand modified by left operand):
  19.     modglob() * glob
  20. <A HREF="order.c.html#line15" target="source">order.c:15,20</A>: Expression has undefined behavior
  21.     (unconstrained function mystery used in left
  22.     operand may set global variable glob used in right
  23.     operand): mystery() * glob
  24.   Code involving a call to function with no modifies
  25.   or globals clause may have undefined or
  26.   implementation-dependent behavior (LCLint assumes
  27.   the unconstrained call may modify any reachable
  28.   state or use any global). Add a specification for
  29.   the function. (-evalorderuncon will suppress
  30.   message)
  31.  
  32. Finished LCLint checking --- 4 code errors found
  33.